package com.tqjc.common.faulthandle.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tqjc.common.faulthandle.entity.FaultRecord;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 * @projectName: BaotouSteel
 * @className: FaultRecordService
 * @author: Patienyon
 * @description: 故障记录服务接口
 * @date: 2023-07-04 16:19
 */

@DS("baotou")
public interface FaultRecordService extends IService<FaultRecord> {

    public List<Map<String, Integer>> getFaultTypeAndCountByParams(String craneType, String workMode, Timestamp beginTime, Timestamp endTime, String fuzzyMapper);

    boolean isExistInfo(FaultRecord faultRecord);
}
